package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//类上的地址与方法上的地址合并，/dept/insert
@Controller
@RequestMapping("/dept")
public class HomeController2 {

    @RequestMapping("/insert")
    public String insert() {
        return "list";
    }

    @RequestMapping("/update")
    public String update() {
        return "list";
    }
}
